package com.csl.jmu.demo.controller;

import com.csl.jmu.demo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <pre>
 * 描述：用户访问
 * </pre>
 *
 * @类名：com.csl.jmu.demo.controller.UserController
 * @作者： 1410HL0236
 * @创建日期: 2019/11/21 10:57
 */
@RestController
@RequestMapping("/testBoot")
public class UserController {

  @Autowired
  UserService userService;

  @RequestMapping("/getUser/{id}")
  private String getUser(@PathVariable Integer id){
    return userService.sel(id).toString();
  }



}
